<div class="row-content am-cf">
    <div class="row">
        <div class="am-u-sm-12 am-u-md-12 am-u-lg-12">
            <div class="widget am-cf">
                <div class="widget-head am-cf">
                    <div class="widget-title  am-cf">当前委托</div>
                </div>
                <div class="widget-body  am-fr">
                    <div class="am-u-sm-12">
                        <table width="100%" class="am-table am-table-compact am-table-striped tpl-table-black ">
                            <thead>
                                <tr>
                                    <th>交易类型</th>
                                    <th style="width: 15%;">状态</th>
                                    <th>总数</th>
                                    <th>剩余</th>
                                    <th>类型</th>
                                    <th>时间</th>
                                    <th style="width: 20%;">操作</th>
                                </tr>
                            </thead>
                            <tbody>
                                {foreach $list as $vo}
                                <tr class="gradeX">
                                    <td class="am-text-middle">
                                     {if condition="$vo.action=='sell'"} 卖出
                                     {elseif condition="$vo.action=='buy'"/}买入
                                     {/if}
                                    </td>
                                    <td class="am-text-middle" style="color: #00A23F;">
                                     {if condition="$vo.status==0"} 等待中（未开始交易）
                                     {elseif condition="$vo.status==1"/}进行中
                                     {elseif condition="$vo.status==2"/}已完成
                                     {elseif condition="$vo.status==3"/}撤销
                                     {elseif condition="$vo.status==4"/}锁定中
                                     {elseif condition="$vo.status==5"/}异常
                                     {/if}

                                    </td>
                                    <td class="am-text-middle">{$vo.num}</td>
                                    <td class="am-text-middle">{$vo.surplusnum}</td>
                                    <td class="am-text-middle">{$vo.symbol}</td>
                                    <td class="am-text-middle">
                                        {$vo.createtime|date="Y-m-d H:i:s",###}
                                    </td>
                                    <td class="am-text-middle">
                                        <div class="tpl-table-black-operation">
                                            <a href="{:url('trade/outside_payment')}?id={$vo.id}" style="padding:10px 20px">订单详情</a>
                                        </div>
                                    </td>
                                </tr>
                                
                                {/foreach}
                            </tbody>
                        </table>
                      {$list->render()}
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>